package com.zmj.service.impl;

import com.zmj.entity.UserInfo;
import com.zmj.mapper.UserInfoMapper;
import com.zmj.service.IUserInfoService;
import com.zmj.utils.DBUtils;

import java.util.List;

public class UserInfoServiceImpl implements IUserInfoService {
    UserInfoMapper userInfoMapper= DBUtils.getMapper(UserInfoMapper.class);

    public UserInfo getInfoByUid(long uid) {
        return userInfoMapper.getInfoByUid(uid);
    }

    public List<UserInfo> selALLInfo(String search,String order) {
       return userInfoMapper.selALLInfo(search, order);
    }

    public boolean addInfo(UserInfo userInfo) {
       return userInfoMapper.addInfo(userInfo);
    }

    public boolean delInfo(long id) {
        return userInfoMapper.delInfo(id);
    }

    public boolean setInfo(UserInfo userInfo) {
       return userInfoMapper.setInfo(userInfo);
    }
}
